package evo.springboot.controller;

import evo.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {
    @Autowired
    private StudentService studentService;

    @RequestMapping(value = "/test")
    public @ResponseBody String test(){
        Integer id = studentService.queryCount();
        return "学生总人数为："+id;
    }
}
